import java.util.Scanner;

public class Main1738 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int n=sc.nextInt();
        int[] arr =new int[n];
        for (int i=0;i< arr.length;i++){
            arr[i]=sc.nextInt();
        }
        int KING=0;
        int WIN=0;
        for (int i=0;i< arr.length;i++){
            if (i%2==0){
                KING=KING+arr[i];
            }else {
                WIN=WIN+arr[i];
            }
        }
        System.out.println("KING"+" "+KING);
        System.out.println("WIN"+" "+WIN);
        if (KING>=WIN){
            System.out.println("KING");
        }else {
            System.out.println("WIN");
        }
    }
}
